package com.lin.constant;

public class RecordConstants {

    public static final int EXPIRE_TIME = 30;  // 过期时间 30 天
    public static final String BORROW_RECORD_NOT_FOUND = "borrow_record_not_found";
    public static final String INVALID_RECORD_ID = "invalid_record_id";
    public static final String TOKEN_PREFIX = "Bearer ";
    public static final String JWT_HEADER_INFO = "Authorization";
    // 用于根据图书ID查询图书借阅记录信息
    public static final String RECORD_INFO_KEY_PREFIX = "record:info:key";
    // 用于根据当前用户查询图书借阅记录信息
    public static final String CURRENT_USER_RECORD_INFO_KEY_PREFIX = "current:user:record:info:key";
    // 用于根据借阅记录ID查询图书借阅状态
    public static final String RECORDS_STATUS_KEY_PREFIX = "records:status:key";
    // 用于根据分页查询图书借阅记录信息
    public static final String RECORDS_INFO_PAGE_KEY_PREFIX = "records:info:page:key";
}
